/*
 * ThreadCase.cpp
 *
 *  Created on: 2012-12-6
 *      Author: yangentao@gmail.com
 */

#include "test.h"
#include "../src/yet/Thread.h"
#include "../src/yet/Event.h"

using namespace  yet;
static DWORD run(void* arg){
	cout<<"Hello"<<endl;
	return 0;
}
static void test(){
	Thread t;
	t.OnRun = &run;
	t.start();
	cout<<t.waitFinish()<<endl;;
	t.start();
	cout<<t.waitFinish()<<endl;;
}

TEST(Thread, a){
	test();
	EXPECT_TRUE(true);
}

